Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added configuration flag to separate resources requiring elevated pri… #3

Merged
merged 3 commits into from
May 17, 2018

Conversation

skpaterson
Copy link

…vileges. This applies to both resource creation in terraform and inspec test execution. Allows

org/project level testing in the future whilst ensuring the defaults work for those having project level permissions only.

Signed-off-by: Stuart Paterson [email protected]

…vileges. This applies to both resource creation in terraform and inspec test execution. Allows

org/project level testing in the future whilst ensuring the defaults work for those having project level permissions only.

Signed-off-by: Stuart Paterson <[email protected]>
@skpaterson skpaterson requested a review from chris-rock May 17, 2018 08:54
Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvement @skpaterson Just added a nit question


control 'gcp-generic-iam-role' do

impact 1.0
title 'Ensure that the IAM role is correctly set up'

if gcp_enable_privileged_resources
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose we use only_if here

control do
   only_if { gcp_enable_privileged_resources == true}
end

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will update the tests accordingly, thanks!

Stuart Paterson added 2 commits May 17, 2018 10:23
…01 exit code as successful in test execution by default.

Signed-off-by: Stuart Paterson <[email protected]>
Signed-off-by: Stuart Paterson <[email protected]>
Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome @skpaterson

@chris-rock chris-rock merged commit 9876094 into master May 17, 2018
@skpaterson skpaterson deleted the conditional-tests branch June 14, 2018 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants